package mapper;

import entity.Admin;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface AdminMapper {
    int insert(Admin admin);

    List<Admin> selectAll();
    Admin selectByAccount(String account);
    Admin selectById(Integer id);
    @Delete("delete  from t_admin where id=#{id}")
    int delete(Integer id);

    int update(Admin admin);

    List<Admin> selectByMap(Map<String, Object> map);
    @Update("update t_admin set headpic=#{headpic} where id=#{id}")
    int updateHeadPic(Admin admin);
}
